import { defHttp } from '/@/utils/http/axios'
import { PageResult, Result } from '/#/axios'
import { BaseEntity } from '/#/web'

/**
 * 分页
 */
export function page(params) {
  return defHttp.get<Result<PageResult<StudentRegistrationModel>>>({
    url: '/studentSys/page',
    params,
  })
}

/**
 * 删除
 */
export function del(id) {
  return defHttp.delete({
    url: '/studentSys/delete',
    params: { id },
  })
}

/**
 * 专业
 */
export interface StudentRegistrationModel extends BaseEntity {
  // 姓名
  name?: string
  // 身份证
  idCard?: string
  // 年级
  grade?: number
  // 代收费
  collectFees?: number
  // 住宿费
  accDation?: number
}
